package leetcode.code2351;

public class Solution {
	public char repeatedCharacter(String s) {
		boolean[] h = new boolean[128];
		for (int i = 0; i < s.length(); i++) {
			char cur = s.charAt(i);
			if (h[cur]) {
				return cur;
			}
			h[cur] = true;
		}
		return 'a';
	}
}
